package com.example.demoinfluxdb;

import lombok.Data;
import org.influxdb.annotation.Column;
import org.influxdb.annotation.Measurement;

/**
 * <b><code>Sensor</code></b>
 * <p>
 * Description
 * <p>
 * <b>Create Time:</b> 2022/1/26 15:11.
 *
 * @author qd.yt
 * @version 0.0.1
 * @since demo-influxdb v0.0.1
 */
@Data
@Measurement(name = "sensor")
public class Sensor {

    @Column(name="deviceId",tag=true)
    private String deviceId;

    @Column(name="temp")
    private float temp;

    @Column(name="voltage")
    private float voltage;

    @Column(name="A1")
    private float A1;

    @Column(name="A2")
    private float A2;

    @Column(name="time")
    private String time;

}